package com.service.impl;

import dao.StudentDao;
import com.entity.Student;
import dao.impl.StudentDaoImpl;
import com.service.StudentService;

import java.util.List;

public class StudentServicelmpl implements StudentService {
    StudentDao dao=new StudentDaoImpl();

    @Override
    public int login(String name, String phong) {
        return dao.login(name,phong);
    }

    @Override
    public int delete(int studentno) {
       return dao .delete(studentno);
    }

    @Override
    public List<Student> findAll() {
        return dao.findAll();
    }
}
